package com.zl.shirodemo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.zl.shirodemo.requestBean.UserAddBean;
import com.zl.shirodemo.service.SysUserService;

@Controller
public class SysUserController {
    @Autowired
    private SysUserService sysUserService;
    
    @PostMapping("/user")
    public ResponseEntity addUser(@RequestBody UserAddBean userAddBean) {
        sysUserService.addUser(userAddBean);
        return ResponseEntity.ok().build();
    }
}
